<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <base href="${APP_PATH}/">
    <title>menu</title>
</head>
<body>
<aside class="lyear-layout-sidebar">
    <!-- logo -->
    <div id="logo" class="sidebar-header">
        <a href="main.jsp"><img src="public/images/logo-sidebar.png" title="LightYear" alt="LightYear"/></a>
    </div>
    <div class="lyear-layout-sidebar-scroll">
        <nav class="sidebar-main">
            <ul class="nav nav-drawer">
                <li class="nav-item"><a href="main.jsp"><i class="mdi mdi-home"></i> 后台首页</a></li>
                <c:forEach items="${trees}" var="tree">
                    <li class="nav-item nav-item-has-subnav">
                        <c:if test="${tree.name=='学员管理'}">
                            <a href="javascript:void(0)"><i class="mdi mdi-account"></i>${tree.name}</a>
                        </c:if>
                        <c:if test="${tree.name=='班级管理'}">
                            <a href="javascript:void(0)"><i class="mdi mdi-format-align-justify"></i>${tree.name}</a>
                        </c:if>
                        <c:if test="${tree.name=='考勤管理'}">
                            <a href="javascript:void(0)"><i class="mdi mdi-alarm-check"></i>${tree.name}</a>
                        </c:if>
                        <c:if test="${tree.name=='考试管理'}">
                            <a href="javascript:void(0)"><i class="mdi mdi-pen"></i>${tree.name}</a>
                        </c:if>
                        <c:if test="${tree.name=='面试管理'}">
                            <a href="javascript:void(0)"><i class="mdi mdi-school"></i>${tree.name}</a>
                        </c:if>
                        <c:if test="${tree.name=='就业管理'}">
                            <a href="javascript:void(0)"><i class="mdi mdi-send"></i>${tree.name}</a>
                        </c:if>
                        <c:if test="${tree.name=='系统管理'}">
                            <a href="javascript:void(0)"><i class="mdi mdi-widgets"></i>${tree.name}</a>
                        </c:if>
                        <c:if test="${not empty tree.children}">
                            <ul class="nav nav-subnav">
                                <c:forEach items="${tree.children}" var="child">
                                    <li><a href="${child.url}">${child.name}</a></li>
                                </c:forEach>
                            </ul>
                        </c:if>
                    </li>
                </c:forEach>
            </ul>
        </nav>
        <%--        <nav class="sidebar-main">--%>
        <%--            <ul class="nav nav-drawer">--%>
        <%--                <li class="nav-item"><a href="main.jsp"><i class="mdi mdi-home"></i> 后台首页</a></li>--%>

        <%--                <li class="nav-item nav-item-has-subnav">--%>
        <%--                    <a href="javascript:void(0)"><i class="mdi mdi-file-outline"></i>学员管理</a>--%>
        <%--                    <ul class="nav nav-subnav">--%>
        <%--                        <li><a href="student/teacherIndex">老师</a></li>--%>
        <%--                        <li><a href="student/supervisorIndex">教学主管</a></li>--%>
        <%--                        <li><a href="student/classmanagerIndex">班主任</a></li>--%>

        <%--                        <li><a href="student/teacherAdd">老师、班主任、教学主管新增学员</a></li>--%>
        <%--                    </ul>--%>
        <%--                </li>--%>
        <%--                <li class="nav-item nav-item-has-subnav">--%>
        <%--                    <a href="javascript:void(0)"><i class="mdi mdi-file-outline"></i>班级管理</a>--%>
        <%--                    <ul class="nav nav-subnav">--%>
        <%--                        <li><a href="class/teacherIndex">老师</a></li>--%>
        <%--                        <li><a href="class/supervisorIndex">教学主管</a></li>--%>
        <%--                        <li><a href="class/classmanagerIndex">班主任</a></li>--%>

        <%--                        <li><a href="class/add">教学主管开班</a></li>--%>
        <%--                    </ul>--%>
        <%--                </li>--%>
        <%--                <li class="nav-item nav-item-has-subnav">--%>
        <%--                    <a href="javascript:void(0)"><i class="mdi mdi-file-outline"></i>考勤管理</a>--%>
        <%--                    <ul class="nav nav-subnav">--%>
        <%--                        <li><a href="attendance/studentIndex">学员</a></li>--%>
        <%--                        <li><a href="attendance/teacherIndex">讲师</a></li>--%>
        <%--                        <li><a href="attendance/classmanagerIndex">班主任</a></li>--%>
        <%--                        <li><a href="attendance/empIndex">就业专员</a></li>--%>
        <%--                        <li><a href="attendance/teachermanagerIndex">教学主管考勤信息</a></li>--%>


        <%--                        <li><a href="attendance/teacnhermanagerAttendance">教学主管考勤率</a></li>--%>
        <%--                    </ul>--%>
        <%--                </li>--%>
        <%--                <li class="nav-item nav-item-has-subnav">--%>
        <%--                    <a href="javascript:void(0)"><i class="mdi mdi-format-align-justify"></i> 考试信息</a>--%>
        <%--                    <ul class="nav nav-subnav">--%>
        <%--                        <li><a href="exam/student/index">学生考试信息</a></li>--%>
        <%--                        <li><a href="exam/classmanager/index">班主任考试信息</a></li>--%>
        <%--                        <li><a href="exam/teacher/index">教师考试信息</a></li>--%>
        <%--                        <li><a href="exam/teachermanager/index">教学主管考试信息</a></li>--%>

        <%--                        <li><a href="score/student/index">学生成绩信息</a></li>--%>
        <%--                        <li><a href="score/classmanager/index">班主任成绩信息</a></li>--%>
        <%--                        <li><a href="score/teacher/index">教师成绩信息</a></li>--%>
        <%--                        <li><a href="score/teachermanager/index">教学主管成绩信息</a></li>--%>
        <%--                        <li><a href="score/emp/index">就业专员成绩信息</a></li>--%>
        <%--                    </ul>--%>
        <%--                </li>--%>
        <%--                <li class="nav-item nav-item-has-subnav">--%>
        <%--                    <a href="javascript:void(0)"><i class="mdi mdi-palette"></i> 面试管理</a>--%>
        <%--                    <ul class="nav nav-subnav">--%>
        <%--                        <li><a href="company/studentFaceTime">学生自己查看面试信息</a></li>--%>
        <%--                        <li><a href="company/teacherlookforface">班主任查看面试信息</a></li>--%>
        <%--                        <li><a href="company/directorlookforface">教学主管查看面试信息</a></li>--%>
        <%--                        <li><a href="company/teacherjurdge">教师查看面试信息</a></li>--%>
        <%--                    </ul>--%>
        <%--                </li>--%>
        <%--                <li class="nav-item nav-item-has-subnav">--%>
        <%--                    <a href="javascript:void(0)"><i class="mdi mdi-format-align-justify"></i> 就业管理</a>--%>
        <%--                    <ul class="nav nav-subnav">--%>
        <%--                        <li><a href="work/companyMes">主管、老师、班主任、就业专员查看单位信息</a></li>--%>
        <%--                        <li><a href="company/unworkindex">单位查看未就业学生信息</a></li>--%>
        <%--                    </ul>--%>
        <%--                </li>--%>

        <%--                <li class="nav-item nav-item-has-subnav  active open">--%>
        <%--                    <a href="javascript:void(0)"><i class="mdi mdi-widgets"></i>系统管理</a>--%>
        <%--                    <ul class="nav nav-subnav">--%>
        <%--                        <li><a href="manage/user/index">用户</a></li>--%>
        <%--                        <li><a href="manage/role/index">角色</a></li>--%>
        <%--                        <li><a href="manage/permission/index">权限</a></li>--%>
        <%--                        <li><a href="manage/log/index">日志</a></li>--%>
        <%--                        <li><a href="manage/data/index">数据</a></li>--%>
        <%--                    </ul>--%>
        <%--                </li>--%>
        <%--            </ul>--%>
        </nav>
        <div class="sidebar-footer">
            <p class="copyright">Copyright &copy; 2020. <a target="_blank" href="http://www.woniuxy.com/">蜗牛学院主页</a> All rights reserved.</p>
        </div>
    </div>
</aside>
</body>
</html>
